package com.demo.inheritance.tableperclasshierarcy;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
/*@DiscriminatorValue(value="P")*/
@NamedQuery(name="ParentLoginDetailsDTO.countRow" ,query="select count(userId) from com.demo.inheritance.tableperclasshierarcy.ParentLoginDetailsDTO")
@Table(name="PARENT_LOGIN")
@PrimaryKeyJoinColumn(name="USER_ID")
public class ParentLoginDetailsDTO extends RemoteUserDetailsDTO {
	
    	
	private Timestamp sessionTime;
	private Timestamp dob;
	private int schoolId;

	@Column(name = "SESSION_TIME")
	public Timestamp getSessionTime() {
		return sessionTime;
	}

	@Column(name = "DOB")
	public Timestamp getDob() {
		return dob;
	}

	@Column(name = "SCHOOL_ID")
	public int getSchoolId() {
		return schoolId;
	}

	@Column(name = "SESSION_TIME")
	public void setSessionTime(Timestamp sessionTime) {
		this.sessionTime = sessionTime;
	}

	public void setDob(Timestamp dob) {
		this.dob = dob;
	}

	public void setSchoolId(int schoolId) {
		this.schoolId = schoolId;
	}

	public static final String USER_ID="userId";
	
}
